package additional;
public class Test {
	public static void main(String[] args) {
		Point p1 = new Point(2, 3);
		Point p2 = new Point(2, 3);
		LineSegement segement = new LineSegement(p1, p2);
		System.out.println(segement);
		p1.setX(10);
		LineSegement cloned = (LineSegement) segement.clone();
		System.out.println(cloned);
		
		
//		System.out.println(p1);
//		Point p3 = p1;
//		System.out.println(p1.getX());
//		p3.setX(5);
////		p3 = null;
//		System.out.println(p1.equals(p2));
//		System.out.println(p1.equals(p3));
		
	}
}
